package com.team.mpc.service.dubbo;

import com.team.common.dubbo.intf.DubboDemo;
import com.team.mpc.service.impl.LocalServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Service(group = "jk") //暴露dubbo服务 注意该注解为dubbo不要引用错误
public class DubboDemoProvider implements DubboDemo {
//    @Autowired
//    private LocalServiceImpl localService;
    @Override
    public String testDubbo() {
        log.info("服务提供者");
        return "提供服务";
    }
}
